:root {
  /* Color palette */
  --color-bg: #0b0c10;
  --color-surface-faint: rgba(230, 233, 239, 0.015);
  --color-surface-xweak: rgba(230, 233, 239, 0.02);
  --color-surface-weak: rgba(230, 233, 239, 0.03);
  --color-surface: rgba(230, 233, 239, 0.04);
  --color-surface-medium: rgba(230, 233, 239, 0.05);
  --color-surface-stronger: rgba(230, 233, 239, 0.06);
  --color-surface-strong: rgba(230, 233, 239, 0.12);
  --color-border-hairline: rgba(230, 233, 239, 0.04);
  --color-border: rgba(230, 233, 239, 0.22);
  --color-border-soft: rgba(230, 233, 239, 0.14);
  --color-border-glass: rgba(230, 233, 239, 0.08);
  --color-primary: #165dff;
  --color-primary-soft: rgba(22, 93, 255, 0.18);
  --color-accent: #ff7d00;
  --color-interactive: #165dff;
  --color-text-primary: #e6e9ef;
  --color-text-secondary: rgba(230, 233, 239, 0.75);
  --color-text-muted: rgba(230, 233, 239, 0.6);
  --color-text-inverse: #0b0c10;
  --site-header-background: rgba(16, 31, 64, 0.68);
  --surface-overlay: rgba(11, 12, 16, 0.85);
  --surface-glass: rgba(16, 31, 64, 0.55);
  --glow-hero: rgba(22, 93, 255, 0.08);
  --glow-divider: rgba(22, 93, 255, 0.6);
  --glow-surface: rgba(22, 93, 255, 0.22);
  --cube-stage-background: linear-gradient(160deg, rgba(30, 64, 175, 0.35), rgba(9, 12, 24, 0.9));
  --cube-glow-primary: rgba(22, 93, 255, 0.55);
  --cube-glow-accent: rgba(255, 125, 0, 0.25);
  --shadow-primary-soft: rgba(43, 99, 255, 0.28);
  --shadow-primary-strong: rgba(43, 99, 255, 0.34);
  --shadow-ambient: rgba(0, 0, 0, 0.25);
  --shadow-depth: rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  --font-size-2xl: clamp(2.25rem, 3vw + 1.5rem, 3.5rem);

  /* Spacing scale */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Radius and shadows */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 160ms ease;
  --transition-medium: 240ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-interactive, var(--color-primary));
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: filter var(--transition-fast);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

input,
textarea {
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--color-interactive, var(--color-primary));
  box-shadow: 0 0 0 3px var(--color-primary-soft);
  outline: none;
}

.container {
  width: min(1120px, 100% - 2 * var(--space-4));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid transparent;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
